package com.ruifu.pls.entity;

import javax.persistence.*;
import java.util.Date;

/**
 * BasSkuPharmapprovalno entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "BAS_SKU_PHARMAPPROVALNO")
@IdClass(BasSkuPharmapprovalnoId.class)
public class BasSkuPharmapprovalno implements java.io.Serializable {

	// Fields

	private String customerid;
	private String sku;
	private String approvalno;
	private BasSkuPharmapprovalnoId id;
	private String approvalactive;
	private String approvalnovalidfrom;
	private String approvalnovalidto;
	private String memo;
	private Date addtime;
	private String addwho;
	private Date edittime;
	private String editwho;

	// Constructors

	/** default constructor */
	public BasSkuPharmapprovalno() {
	}

	/** minimal constructor */
	public BasSkuPharmapprovalno(BasSkuPharmapprovalnoId id) {
		this.id = id;
	}

	/** full constructor */
	public BasSkuPharmapprovalno(BasSkuPharmapprovalnoId id,
			String approvalactive, String approvalnovalidfrom,
			String approvalnovalidto, String memo, Date addtime, String addwho,
			Date edittime, String editwho) {
		this.id = id;
		this.approvalactive = approvalactive;
		this.approvalnovalidfrom = approvalnovalidfrom;
		this.approvalnovalidto = approvalnovalidto;
		this.memo = memo;
		this.addtime = addtime;
		this.addwho = addwho;
		this.edittime = edittime;
		this.editwho = editwho;
	}

	// Property accessors
    @Id
	@Column(name = "CUSTOMERID", nullable = false, length = 30)
	public String getCustomerid() {
		return this.customerid;
	}

	public void setCustomerid(String customerid) {
		this.customerid = customerid;
	}

    @Id
	@Column(name = "SKU", nullable = false, length = 400)
	public String getSku() {
		return this.sku;
	}

	public void setSku(String sku) {
		this.sku = sku;
	}

    @Id
	@Column(name = "APPROVALNO", nullable = false, length = 50)
	public String getApprovalno() {
		return this.approvalno;
	}

	public void setApprovalno(String approvalno) {
		this.approvalno = approvalno;
	}

	@Column(name = "APPROVALACTIVE", length = 1)
	public String getApprovalactive() {
		return this.approvalactive;
	}

	public void setApprovalactive(String approvalactive) {
		this.approvalactive = approvalactive;
	}

	@Column(name = "APPROVALNOVALIDFROM", length = 10)
	public String getApprovalnovalidfrom() {
		return this.approvalnovalidfrom;
	}

	public void setApprovalnovalidfrom(String approvalnovalidfrom) {
		this.approvalnovalidfrom = approvalnovalidfrom;
	}

	@Column(name = "APPROVALNOVALIDTO", length = 10)
	public String getApprovalnovalidto() {
		return this.approvalnovalidto;
	}

	public void setApprovalnovalidto(String approvalnovalidto) {
		this.approvalnovalidto = approvalnovalidto;
	}

	@Column(name = "MEMO", length = 400)
	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "ADDTIME", length = 7)
	public Date getAddtime() {
		return this.addtime;
	}

	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	@Column(name = "ADDWHO", length = 35)
	public String getAddwho() {
		return this.addwho;
	}

	public void setAddwho(String addwho) {
		this.addwho = addwho;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "EDITTIME", length = 7)
	public Date getEdittime() {
		return this.edittime;
	}

	public void setEdittime(Date edittime) {
		this.edittime = edittime;
	}

	@Column(name = "EDITWHO", length = 35)
	public String getEditwho() {
		return this.editwho;
	}

	public void setEditwho(String editwho) {
		this.editwho = editwho;
	}

}